package com.qs.education.bean.beans;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.JoinColumn;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qs.education.bean.api.ResponseBean;
import com.qs.education.bean.entity.EducationGroup;
import com.qs.education.bean.entity.EducationHomeWork;
import com.qs.education.bean.entity.EducationSchool;
import com.qs.education.bean.entity.EducationSubject;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @class EducationTeacherResponse
 * @author Leon
 * @description
 * @date Nov 5, 2018
 */
@Data
@EqualsAndHashCode(callSuper=true)
public class EducationTeacherResponse extends ResponseBean{
	private Integer id;
	private String name;
	private String mobile;
	private String password;
	private String createTime;
	private String headImage;
	private String teacherToken;
	
	@JsonIgnoreProperties(value = { "teachers", "students", "teacher", "grade", "clazz", "homeWorkList" })
	private List<EducationGroup> group = new ArrayList<EducationGroup>();
	
	@JsonIgnoreProperties(value = { "students", "teachers" })
	private EducationSchool school;
	
	@JoinColumn(name = "subject_id", referencedColumnName = "id")
	private EducationSubject subject;
	
	@JsonIgnoreProperties(value = { "teachers", "students", "teacher", "grade", "clazz", "homeWorkList" })
	private List<EducationGroup> groups = new ArrayList<EducationGroup>();
	
	@JsonIgnoreProperties(value = { "group", "teacher", "homeWorkQuestionList" })
	private List<EducationHomeWork> homeWorkList;
}
